import NavigatorViewConfig from "./NavigatorViewConfig";
import {ReactNode} from 'react';

export default class NavigatorStack {
    componentFunc: (paramsKey) => ReactNode;
    viewConfig?: NavigatorViewConfig;
    paramsKey?:string;
    constructor(
        componentFunc: (paramsKey) => ReactNode,
        viewConfig?: NavigatorViewConfig,
        paramsKey?: string
    ) {
        this.componentFunc = componentFunc;
        this.viewConfig = viewConfig;
        this.paramsKey = paramsKey;
    }

    isEmpty(): boolean {
        return !this.componentFunc;
    }
}
